﻿using Autodesk.AutoCAD.ApplicationServices;
using Autodesk.AutoCAD.Runtime;

namespace CadToolTest
{
    /// <summary>
    /// 测试工具
    /// </summary>
    public class TestDemo
    {
        [CommandMethod(nameof(Test))]
        public void Test()
        {
            var doc = Application.DocumentManager.MdiActiveDocument;
            var ed = doc.Editor;

            using (doc.LockDocument())
            {
                ed.WriteMessage("hello Cad!");
            }
        }

    }
}